package com.dmooo.yxmmerchant.view.contract;

import com.common.mvpbase.BaseView;
import com.common.net.listener.HttpOnNextListener;
import com.dmooo.yxmmerchant.domain.ShopAdminBean;
import com.google.gson.JsonObject;

import java.util.List;

public class ShopPeopleContract {
    public interface ShopPeopleView extends BaseView{
        void showGoodsAuth(JsonObject object);
        void showServiceAuth(JsonObject object);
        void showShopAdminList(List<ShopAdminBean.Item> list);
        void addAdminSuccess();
        void delAdminSuccess(int pos);
        void editSuccess();
    }
    public interface ShopPeopleMdl{
        void getGoodsAuth(HttpOnNextListener listener);
        void getServiceAuth(HttpOnNextListener listener);
        void getShopAdminList(String token,int page,HttpOnNextListener listener);
        void delAdmin(String token,String id,HttpOnNextListener listener);
        void addAdmin(String token,String account,String pwd,String job_num,String truename,String contact,String is_freeze,String auth,String order_rate,String service_order_rate,HttpOnNextListener listener);
        void editAdmin(String token,String id,String account,String pwd,String job_num,String truename,String contact,String is_freeze,String auth,String order_rate,String service_order_rate,HttpOnNextListener listener);
    }
    public interface ShopPeoplePtr{
        void getGoodsAuth();
        void getServiceAuth();
        void getShopAdminList(String token,int page);
        void delAdmin(String token,String id,int pos);
        void addAdmin(String token,String account,String pwd,String job_num,String truename,String contact,String is_freeze,String auth,String order_rate,String service_order_rate);
        void editAdmin(String token,String id,String account,String pwd,String job_num,String truename,String contact,String is_freeze,String auth,String order_rate,String service_order_rate);
    }
}
